﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DanhSachSanPham.ascx.cs" Inherits="TMDT.Web.UI.Controls.DanhSachSanPham" %>
<asp:DataList ID="dtlSanPham" runat="server" RepeatColumns="4" 
    onitemdatabound="dtlSanPham_ItemDataBound">
    <ItemStyle VerticalAlign="Top" Width="240px" />
    <ItemTemplate>
        <div class="mainsp">
            <div class="hinhsp">
                <a href="ChiTietSanPham.aspx?ID=<%#Eval("IDSanPham") %>">
                    <asp:Image ID="imgHinhAnh" runat="server" Width="200px"
                        Height="200px"/></a>
            </div>
            <div class="tensp">
                <a href="ChiTietSanPham.aspx?ID=<%#Eval("IDSanPham") %>">
                    <asp:Label ID="Label1" runat="server" Text='<%#Eval("TenSanPham") %>'></asp:Label>
                </a>
            </div>
            <div class="giasp">
                <asp:Label ID="lblGia" ForeColor="#1445D1" runat="server" Text='<%# Eval("Gia","{0:0,0 vnđ}") %>'
                    Font-Bold="True"></asp:Label>
            </div>
        </div>
    </ItemTemplate>
</asp:DataList>